<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const obj = {
            username:'cxk',
            age:25 
        }

        console.log(obj.username);//原始写法
        const {username:a} = obj;
        console.log(a);
        console.log(username);

        // 1+1 = 3 
    </script>
</body>
</html>